<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="com.bus.entity.Products"%>
<%@page import="com.bus.entity.Providers"%>
<%@page import="com.bus.entity.Categorys"%>
<%@page import="java.util.List"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/javascript/myjavascript/myjs.js">
	
</script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/javascript/myjavascript/jQuery-1.12.4.js">
	
</script>
<link
	href="${pageContext.request.contextPath}/javascript/bootstrap/css/bootstrap.min.css"
	rel="stylesheet" />
<script
	src="${pageContext.request.contextPath}/javascript/bootstrap/js/bootstrap.min.js"></script>


<!-- bootstrap table组件以及中文包的引用*@ -->
<script
	src="${pageContext.request.contextPath}/javascript/table/bootstrap-table.js"></script>
<link
	href="${pageContext.request.contextPath}/javascript/table/bootstrap-table.css"
	rel="stylesheet" />
<script
	src="${pageContext.request.contextPath}/javascript/table/locale/bootstrap-table-zh-CN.js"></script>
</head>
<style>
span {
	position: absolute;
	right: 200px;
	float: right;
	display: inline-block;
	min-width: 10px;
	font-size: 18px;
	font-weight: bold;
	color: #fff;
	text-align: center;
	background-color: #999;
	border-radius: 10px;
}
</style>
<body>
	<h3>产品参数</h3>
	<form action="addProduct.action" name="editForm" method="post">

		<table class="table table-condensed" style="font-size: 18px;">

			<tr>
				<td>产品名称</td>
				<td><input type="text" name="product_name" id="p_name"
					placeholder="请输入产品名称" > <span
					id="product_name"></span></td>
			</tr>

			<tr>
				<td>产品进价</td>
				<td><input type="text" name="income_price" placeholder="请输入数字"
					onblur="checkProductIncome_price(this)" id="p_income_price">
					<span id="income_price"></span></td>
			</tr>

			<tr>
				<td>供应商</td>
				<td><select name="pro">
						<option value="0">请选择供应商</option>
						<c:forEach items="${list1}" var="pro">
							<option value="${pro.providerID}">${pro.provider_name}</option>
						</c:forEach>
				</select></td>
			</tr>

			<tr>
				<td>产品数量</td>
				<td><input type="text" name="quantity" placeholder="请输入数字"
					onblur="checkProductQuantity(this)" id="p_quantity"> <span
					id="quantity"></span></td>
			</tr>

			<tr>
				<td>产品售价</td>
				<td><input type="text" name="sales_price" placeholder="请输入数字"
					onblur="checkProductSales_price(this)" id="p_sales_price">
					<span id="sales_price"></span></td>
			</tr>

			<tr>
				<td>产品目录</td>
				<td><select name="cate">
						<option value="0">请选择目录</option>
						<c:forEach items="${list2}" var="c">
							<option value="${c.categoryID}">${c.category_name}</option>
						</c:forEach>
				</select></td>
			</tr>


			<tr>
				<td colspan="1" style="text-align: center;"><input
					class="btn btn-info" type="submit" value="确定增加"
					onclick="" /> <input class="btn btn-info"
					type="reset" value="重置数据" /></td>
			</tr>
		</table>
	</form>
</body>
</html>